package com.oracle.oa.biz.impl;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.oracle.oa.biz.BaseBiz;
import com.oracle.oa.dao.BaseDao;
import com.oracle.oa.util.PageBean;
import com.oracle.oa.util.PageBean2;

public class BaseBizImpl implements BaseBiz {
	BaseDao dao;
	public List getAll(Class clzz) {
		return dao.getAll(clzz);
	}
	public Object getById(Class clzz, Serializable id) {
		return dao.getById(clzz, id);
	}
	public List getByProperty(Class clzz, String propertyName,
			Object propertyValue) {
		return dao.getByProperty(clzz, propertyName, propertyValue);
	}
	public List getAllByHQL(String hql) {
		return dao.getAllByHQL(hql);
	}
	public List getAllByDetachedCriteria(DetachedCriteria dc) {
		return dao.getAllByDetachedCriteria(dc);
	}
	public void save(Object obj) {
		dao.save(obj);
	}
	public void update(Object obj) {
		dao.update(obj);
	}
	public void delete(Object obj) {
		dao.delete(obj);
	}
	public BaseDao getDao() {
		return dao;
	}
	public void setDao(BaseDao dao) {
		this.dao = dao;
	}
	public void splitPage1(PageBean pb, DetachedCriteria dc, Class clz) {
		dao.splitPage1(pb, dc, clz);
	}
	public void fenye(DetachedCriteria dc, PageBean2 pb, Class clz) {
		dao.fenye(dc, pb, clz);
	}

	
}
